Skip to main content

Goal Choice Image

goalChoiceImage is a template that supports single and multiple choices.

KeyNotes
typegoalChoiceImage
stepIdUnique step id
titleThe step title
subtitleThe step subtitle
selectModesingle or multiple
shapeModesquare or rectangular (check the screenshots below)
choiceBackgroundColorThe background color of the choices.
choiceTextColorThe text color of the choices
hoverBackgroundColorThe hover color.
selectedChoiceBorderColorThe border color of the selected choice.
choicesAn array of the choices on that step
  "choices": [
    {
        "imageUrl": "https://c.thefab.co/web-onboarding/shape/ibs/icons/18.1.png",
        "name": "Effective, but unsustainable",
        "value": "Effective, but unsustainable"
    },
    {
        "imageUrl": "https://c.thefab.co/web-onboarding/shape/ibs/icons/18.2.png",
        "name": "Somewhat effective",
        "value": "Somewhat effective"
    },
    {
        "imageUrl": "https://c.thefab.co/web-onboarding/shape/ibs/icons/18.3.png",
        "name": "Ineffective",
        "value": "Ineffective"
    }
]
textColorThe main textColor on the page
ctaTextThe text of the main button
ctaColorThe text color of the main button
ctaBackgroundColorThe background color of the main button
ctaHoverBackgroundColorThe background of the main button on hovering.
backButtonColorThe text color of the back button
backButtonBackgroundColorThe background color of the back button
backButtonTextThe text of the back button

Examples

Goal choice single cohice - rectangular
{
"type": "goalChoiceImage",
"stepId": "step_14",
"title": "How often do digestive symptoms prevent you from a quality life?",
"backgroundColor": "#FFF4EE",
"textColor": "#251C93",
"ctaText": "Continue",
"ctaColor": "#FFF",
"ctaBackgroundColor": "#3425B8",
"ctaHoverBackgroundColor": "#2A1E93",
"backButtonColor": "#FFA133",
"backButtonBackgroundColor": "#FFF",
"selectMode": "single",
"shapeMode": "rectangular",
"backButtonText": "Back",
"choiceBackgroundColor": "#fff",
"choiceTextColor": "#251C93",
"hoverBackgroundColor": "rgba(255, 255, 255, 0.60)",
"selectedChoiceBorderColor": "#3425B8",
"choices": [
{
"imageUrl": "https://c.thefab.co/web-onboarding/shape/ibs/icons/14.1.png",
"name": "Every day",
"value": "Every day"
},
{
"imageUrl": "https://c.thefab.co/web-onboarding/shape/ibs/icons/14.2.png",
"name": "4+ times a week",
"value": "4+ times a week"
},
{
"imageUrl": "https://c.thefab.co/web-onboarding/shape/ibs/icons/14.3.png",
"name": "About once a week",
"value": "About once a week"
},
{
"imageUrl": "https://c.thefab.co/web-onboarding/shape/ibs/icons/14.4.png",
"name": "2-3 times a month",
"value": "2-3 times a month"
},
{
"imageUrl": "https://c.thefab.co/web-onboarding/shape/ibs/icons/14.5.png",
"name": "About once a month",
"value": "About once a month"
},
{
"imageUrl": "https://c.thefab.co/web-onboarding/shape/ibs/icons/14.5.png",
"name": "Never",
"value": "Never"
}
]
}

Goal choice multipe cohice - square
  {
"type": "goalChoiceImage",
"stepId": "step_11",
"title": "Have you noticed any triggers of symptoms?",
"backgroundColor": "#FFF4EE",
"textColor": "#251C93",
"ctaText": "Continue",
"ctaColor": "#FFF",
"ctaBackgroundColor": "#3425B8",
"ctaHoverBackgroundColor": "#2A1E93",
"backButtonColor": "#FFA133",
"backButtonBackgroundColor": "#FFF",
"selectMode": "multiple",
"shapeMode": "square",
"backButtonText": "Back",
"choiceBackgroundColor": "#fff",
"choiceTextColor": "#251C93",
"hoverBackgroundColor": "rgba(255, 255, 255, 0.60)",
"selectedChoiceBorderColor": "#3425B8",
"choices": [
{
"imageUrl": "https://c.thefab.co/web-onboarding/shape/wave-1.svg",
"name": "Stress",
"value": "Stress"
},
{
"imageUrl": "https://c.thefab.co/web-onboarding/shape/wave-2.svg",
"name": "Certain foods",
"value": "Certain foods"
},
{
"imageUrl": "https://c.thefab.co/web-onboarding/shape/wave-3.svg",
"name": "Medications",
"value": "Medications"
},
{
"imageUrl": "https://c.thefab.co/web-onboarding/shape/wave-4.svg",
"name": "Hormones",
"value": "Hormones"
},
{
"imageUrl": "https://c.thefab.co/web-onboarding/shape/wave-5.svg",
"name": "Changes in routine",
"value": "Changes in routine"
},
{
"imageUrl": "https://c.thefab.co/web-onboarding/shape/wave-3.svg",
"name": "Exercise",
"value": "Exercise"
},
{
"imageUrl": "https://c.thefab.co/web-onboarding/shape/wave-4.svg",
"name": "Weather",
"value": "Weather"
},
{
"imageUrl": "https://c.thefab.co/web-onboarding/shape/wave-5.svg",
"name": "Sleep disturbances",
"value": "Sleep disturbances"
}
]
}